package com.sunjy.demo1.feign.feignFallBack;

import com.sunjy.common.domain.ApiResponseT;
import com.sunjy.demo1.dto.feign.Person;
import com.sunjy.demo1.feign.TestPersonFeign;
import com.sunjy.demo1.form.PersonForm;
import org.springframework.stereotype.Component;

@Component
public class HystrixClientFallback implements TestPersonFeign {


  @Override
  public ApiResponseT findOnePerson(Integer id, String name) {
    
    return ApiResponseT.error();
  }

  @Override
  public ApiResponseT findPostPerson(PersonForm personForm) {
    return ApiResponseT.error();
  }
}